let app = new Vue({
    el: '#general',
    data: {
        dataitems: []
    },
    filters: {
        numberFormat(x) {
            return x.toLocaleString()
        }
    },
    created() {
        // Promise对象
        fetch('/api/order_main_data')
            .then(resp => resp.json())
            .then(json => this.dataitems = json.results)
    }
})